package com.xz.knowledgeDuplication.pattern.factory.abstract_factory;

import com.xz.knowledgeDuplication.pattern.factory.method_factory.Coffee;
import com.xz.knowledgeDuplication.pattern.factory.method_factory.LatteCoffee;

/**
 * @author 召
 * @date 2022-03-03 21:05:23
 */
public class ItalyDessertFactory implements DessertFactory {

    @Override
    public Coffee createCoffee() {
        return new LatteCoffee();
    }

    @Override
    public Dessert createDessert() {
        return new Tiramisu();
    }

}
